package com.example.jdk8.lambdaStream;

import java.util.Arrays;
import java.util.stream.Collectors;

public class Java8Test4 {
	public static void main(String[] args) {
		Arrays.asList(1, 2, 3, 4, 5, 6, 7, 9, 8, 0, 1)
        .stream()
        .parallel()
        .collect(Collectors.groupingBy(x -> x % 10))
        .forEach((x, y) -> System.out.println(x + ":" + y));
	}
}
